@import "./custom";
@import './theme';
@import "./base";
@import './row';
@import './tab';
@import './header';
@background-height: 450px;
@search-bar-height: 50px;

.app-background {
  position: fixed;
  top: 0;
  left: 0;
  // height: 250px;
  height: @background-height;
  width: 100%;
  min-width: 1000px;
  z-index: 199;
  display: flex;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  zoom: 1;
  box-shadow: 1px 3px 4px rgba(0,0,0,.3);
  background-color: #232323;
  // background-image: url('/1596169454_730066.jpg');
  // background-image: url('/f0d92df072f01c71fc164be5ad248968.jpg');
  // background-image: url('/1590553141_839448.jpg');
  background-image: url('/images/th.jpg');
}


.app {
  &-search {
    top: 0;
    // left: 50%;
    // position: fixed;
    width: 40%;
    max-width: 800px;
    min-width: 400px;
    background-color: #fff;
    margin: auto;
    // transform: translateX(-50%);

    &_bar {
      display: flex;
      height: @search-bar-height;
      overflow: hidden;
      font-size: 16px;

      input {
        width: 100%;
        height: @search-bar-height;
        border: 0;
        outline: none;
        padding: 0 10px;
        font-size: 15px;
      }

      button {
        min-width: 100px;
        height: @search-bar-height;
        cursor: pointer;
        color: #ffffff;
        background-color: @primary-color;
      }
    }
  }

  &-main {
    position: relative;
    z-index: 100;
    margin-top: @background-height+50;
    // background-color: #fff;
  }

  &-container {
    max-width: 1335px;
    padding: 0 20px;
    margin: auto;

    &_title {
      margin: 20px 0;
      font-size: 20px;
      font-weight: 500;
    }

    &_item {
      display: block;
      padding: 14px;
      color: #232323;
      background: #ffffff;
      // border: 1px solid #ebebeb;
      transition: all 300ms ease-in-out;

      &:hover {
        transform: translateY(-6px);
        box-shadow: 0px 13px 9px -10px rgba(0, 36, 100, .3);
      }
    }

    &_icon {
      width: 20px;
      height: 20px;
      // background-color: #ebebeb;
      background-size: 20px 20px;
      float: left;

      img {
        width: 100%;
        height: 100%;
      }
    }

    &_info {
      display: flex;
      flex-direction: column;
      height: 60px;
      margin-left: 30px;

      .bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;

        span {
          font-size: 12px;
          color: #999999;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .url {
          width: 40%;
          text-align: right;
          display: inline-block;
        }
      }
    }

    &_name {
      font-size: 14px;
      line-height: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
    }

    .swiper-container-horizontal>.swiper-pagination-progressbar,
    .swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
      top: auto;
      bottom: 0;
    }
  }
}